package org.stock.agent.model;

import java.time.LocalDateTime;

public class AnalysisResult {
    private String analystRole;     // 分析角色
    private String symbol;          // 股票代码
    private String probability;     // 上涨概率(0-100)
    private String reasoning;       // 分析理由
    private String confidenceLevel; // 置信度(高/中/低)
    private LocalDateTime timestamp; // 分析时间

    // 构造函数
    public AnalysisResult() {
    }

    public AnalysisResult(String analystRole, String symbol, String probability,
                         String reasoning, String confidenceLevel) {
        this.analystRole = analystRole;
        this.symbol = symbol;
        this.probability = probability;
        this.reasoning = reasoning;
        this.confidenceLevel = confidenceLevel;
        this.timestamp = LocalDateTime.now();
    }

    // Getter和Setter方法
    public String getAnalystRole() {
        return analystRole;
    }

    public void setAnalystRole(String analystRole) {
        this.analystRole = analystRole;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public String getProbability() {
        return probability;
    }

    public void setProbability(String probability) {
        this.probability = probability;
    }

    public String getReasoning() {
        return reasoning;
    }

    public void setReasoning(String reasoning) {
        this.reasoning = reasoning;
    }

    public String getConfidenceLevel() {
        return confidenceLevel;
    }

    public void setConfidenceLevel(String confidenceLevel) {
        this.confidenceLevel = confidenceLevel;
    }

    public LocalDateTime getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(LocalDateTime timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public String toString() {
        return "AnalysisResult{" +
                "analystRole='" + analystRole + '\'' +
                ", symbol='" + symbol + '\'' +
                ", probability=" + probability +
                ", reasoning='" + reasoning + '\'' +
                ", confidenceLevel='" + confidenceLevel + '\'' +
                ", timestamp=" + timestamp +
                '}';
    }
}